package com.smmisia.gateway.controller;

import com.smmisia.gateway.config.PatternProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
class TestController {

    @Autowired
    private PatternProperties PatternProperties;

    @GetMapping("/now")
    public String now() {
        return PatternProperties.getDateformat();
    }
}
